Stream box values with updateBoxValue#304
Conversation
merge streamValueBox and valueBox
|
Hi @colearendt -- first thanks for opening this PR, I really like the additional functionality of being able to update the box values without re-rendering the whole box. I made some changes to the API that you might be interested in merging (or using), which you can see in gadenbuie/shinyDashboard@stream-box. Notably, I changed the syntax around updateBoxValue(session, inputId = "singlebox", value = value())The motivation for this change would be to make it easier to add functionality to update other properties of the box, such as the color or icon, e.g. # not yet implemented
updateBoxValue(session, inputId = "singlebox", value = value(), status = "warning")I kept the ability to update multiple boxes at once in a function called Finally, I added a small CSS animation on the box value update that adds a small flash to the value update. Feel free to use, lose, or modify any part of the code I've written. Where I think it may contribute to this PR is:
|
|
Any news on this PR? I think it would be a great feature vastly improving user experience and performance. |
|
I'd also like to follow bump this. This function shows up in one of the shiny demos (the twitter conference demo) but it's not a part of any of the code bases making it a little confusing when trying to sort out update value boxes. |

Adds a
updateBoxValuefunction to stream box values directly to theinfoBoxandvalueBoxvalues without re-rendering the rest of the HTML. Useful for values that change often.Also adds
idvalues for theinfoBoxandvalueBoxitems (NULLby default).